package com.wowoai.user.controller.req;

import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.Size;

/**
 * 用户登录请求
 */
@Data
public class UserReq {

    /**
     * 手机号码
     */
    @NotBlank
    @Size(max = 11,message = "手机号码长度不合法")
    private String phoneNumber;

    /**
     * 昵称
     */
    private String nickName;

    /**
     * 性别
     */
    private Short gender;

    /**
     * 头像
     */
    private MultipartFile avatar;

}
